<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('parter/index')}">党员风采</a></li>
			<li><a href="{:url('parter/add')}">添加</a></li>
		</ul>
	
		<div class="top-form-wrapper margin-top-20 clearfix">
			<form class="well form-inline" method="get" name="form1" action="{:url('parter/index')}">
				党内职务：
				<select class="form-control" name="partypost" id="">
					<option value="">全部</option>
					<volist name="partypost" id="v">
						<option value="{$v['id']}" <if condition="input('request.partypost') neq '' && input('request.partypost') eq $v['id']">selected</if>>{$v['name']}</option>
					</volist>
				</select>
				党支部：
				<select class="form-control" name="partybranch" id="">
					<option value="">全部</option>
					<volist name="partybranch" id="v">
						<option value="{$v['id']}" <if condition="input('request.partybranch') neq '' && input('request.partybranch') eq $v['id']">selected</if>>{$v['name']}</option>
					</volist>
				</select>				
				<input type="submit" class="btn btn-primary" value="搜索" onclick="form1.action='{:url('parter/index')}';form1.submit();">

			</form>


		</div>		
		
		<form method="post" class="js-ajax-form margin-top-20" action="{:url('parter/listOrder')}">
		
		
		
			<div class="table-actions">
				<button class="btn btn-primary btn-sm js-ajax-submit" type="submit">{:lang('SORT')}</button>
			</div>		
			<table class="table table-hover table-bordered margin-top-20">
				<thead>
					<tr>
						<th width="50">{:lang('SORT')}</th>
						<th width="50">ID</th>
						<th>姓名</th>
						<th>党内职务</th>
				 		<th>所属支部</th>
						

						<th width="160">{:lang('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<php>

					</php>
					<foreach name="list" item="vo">
					<tr>
						<td>
							<input name="list_orders[{$vo.id}]" class="input-order" type="text" value="{$vo.list_order}">
						</td>				
						<td>{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.post}</td>
						<td>{$vo.branch}</td>


						<td>
							<a class="btn btn-xs btn-primary" href="{:url('parter/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
							
						   <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('parter/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						</td>
					</tr>
					</foreach>
					
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>